package service.exception;

public class AccountException extends Exception {

    public enum CODE {

        UNKNOWN,
        INVALID_ACTOR,
        INVALID_CITY,
        INVALID_CITY_PROVINCE,
        INVALID_INSTITUTION,
        INVALID_ACCOUNT_NUM,
        ERROR_IN_ADDBANKACCOUNT,
    }

    public CODE m_code;

    public AccountException(CODE code) {
        super(code.toString());
        m_code = code;
    }

    public AccountException(CODE code, Exception e) {
        super(e);
        m_code = code;
    }

}
